package com.dkd.quartz.task;

import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class MyTask {

    public void printTime(){
        System.out.println("输出时间："+new Date().toString());
    }
}
